package com.weiyuwqj.api.service;

import com.weiyuwqj.api.model.BasUserInvite;
import com.weiyuwqj.api.model.vo.InviteLevelVo;
import com.weiyuwqj.api.base.BaseService;
import com.weiyuwqj.api.common.Paginator;
import com.weiyuwqj.api.common.PageList;

import com.weiyuwqj.api.model.vo.BasUserInviteVo;

import java.util.List;
import java.util.Map;

/**
 * Created by Yao xiuwei on 2015/12/2.
 */
public interface BasUserInviteService extends BaseService<BasUserInvite> {
    //分页显示 & 查询
    PageList getList(Paginator p, Map<String, Object> param);

    //无分页查询
    List<BasUserInviteVo> getList(Map<String, Object> param);

    //根据userId获取被邀请人
    PageList getListByUserId(Paginator paginator, Integer userId);

    //根据inviteId获取邀请人
    BasUserInviteVo getOneByInviteId(Integer inviteId);

    //用户绑定邀请人的邀请码
    Map inviteBinding(Integer userId, String inviteCode);

    //修改邀请人
    void modifyInvite(Map map);
}
